﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;

namespace LotteCinema.DAO
{
    public class DDoiMatKhau:KetNoiCSDL
    {
        #region Đổi mật khẩu nhân viên
        public void NHANVIEN_DoiMatKhau(string manv, string matkhaucu, string matkhaumoi)
        {
            using (SqlCommand cmd = new SqlCommand("sp_CAPNHATMATKHAU_NHANVIEN", LayKetNoi()))
            {
                cmd.CommandType = CommandType.StoredProcedure;
                cmd.Parameters.Add(new SqlParameter("@MANV", manv));
                cmd.Parameters.Add(new SqlParameter("@MATKHAUCU", matkhaucu));
                cmd.Parameters.Add(new SqlParameter("@MATKHAUMOI", matkhaumoi));
                cmd.ExecuteNonQuery();
            }
        }
        #endregion
    }
}